package com.sherlockHolmes.init.service;

import com.sherlockHolmes.init.entity.dao.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sherlockHolmes.init.entity.dto.AssetDTO;
import com.sherlockHolmes.init.entity.dto.UserInfoDTO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 四月一日 君寻
* &#064;description  针对表【user_info(用户表)】的数据库操作Service
* &#064;createDate  2024-03-25 15:53:44
 */
public interface UserInfoService extends IService<UserInfo>, SearchService {

    UserInfo getUserByName(String username);

    String login(UserInfo user, HttpServletRequest request) throws Exception;

    Object register(UserInfo user);

    int updateUserInfo(UserInfoDTO userInfo);

    int addAsset(AssetDTO asset);

    int reduceAsset(AssetDTO asset);
}
